<!--商品列表-->
<template>
  <el-table :data="filterTableData" style="width: 100%;padding-top: 10px;" >
    <el-table-column label="编号" prop="id" />
    <el-table-column label="商品标题" prop="title" />
    <el-table-column label="价格" prop="price" />
    <el-table-column label="销量" prop="number" />
    <el-table-column label="操作" prop="do" />
    <el-table-column align="right">
      <template #header>
        <el-input v-model="search" size="small" placeholder="请输入搜索内容" />
      </template>
      <template #default="scope">
        <el-button size="small" @click="handleEdit(scope.$index, scope.row)">
          Edit
        </el-button>
        <el-button
            size="small"
            type="danger"
            @click="handleDelete(scope.$index, scope.row)"
        >
        </el-button>
      </template>
    </el-table-column>
  </el-table>
</template>

<script  setup>

</script>
<style scoped>

</style>